class Employee:
    _count = 0  

    def __init__(self):
        Employee._count += 1 

    @classmethod
    def get_count(cls):
        return cls._count  

    def sayHello(self):
        print("员工打招呼: 你好!")


# 测试代码
if __name__ == "__main__":
    emp1 = Employee()
    emp2 = Employee()
    emp3 = Employee()
    print(f"员工类总共实例化了 {Employee.get_count()} 个对象")
